home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LISTMANA
/
__TESTER
/
TESTERME.C1
< prev
next >
Wrap
Text File
|
1989-06-25
|
2KB
|
70 lines
/**** */
/**** Code Testing System version 1.0 (beta) */
/**** */
/**** All portions of this source code are the property of Jack */
/**** Herrington. I, Jack Herrington, give you permission to use */
/**** use or alter the code in any way that pleases you. You must */
/**** however return by whatever means avaliable any improvements */
/**** you believe significant to Jack Herrington, accepting that */
/**** these improvements might be contained in later releases of */
/**** the code. I also grant you permission to remove this header */
/**** from any file you are WORKING on, as long as you put it back */
/**** when you're stopped WORKING on it. */
/**** */
/**** Jack Herrington: University Of Miami, Biomedical Computing */
/**** 1600 N.W. 10th Ave. (R-53) */
/**** (305) 547-6538 */
/**** */
/****/
/**** Handle the menus */
/****/
#include "Tester.h"
/****/
/**** Create the menus and refresh the bar */
/****/
void TestMenuSetup()
{
char charTmp[255];
int hand;
/**** Apple Menu */
charTmp[0] = 1;
charTmp[1] = appleMark;
Menus[0] = NewMenu(128,charTmp);
AppendMenu(Menus[0],"\PAbout Tester...");
InsertMenu(Menus[0],0);
/**** File Menu */
Menus[1] = NewMenu(129,"\PFile");
AppendMenu(Menus[1],"\PQuit");
InsertMenu(Menus[1],0);
/**** Edit Menu */
Menus[2] = NewMenu(130,"\PEdit");
AppendMenu(Menus[2],"\P(Undo;(-;(Cut;(Copy;(Paste");
InsertMenu(Menus[2],0);
DisableItem(Menus[2],0);
/**** Window Menu */
Menus[3] = NewMenu(131,"\PWindow");
for(hand=0;;hand++)
{
if(Handlers[hand].preLaunch == (-1))break;
(void)strcpy(charTmp,Handlers[hand].menuName);
(void)CtoPstr(charTmp);
AppendMenu(Menus[3],charTmp);
}
InsertMenu(Menus[3],0);
/**** Update the menu bar */
DrawMenuBar();
}